import request from '@/utils/request'

// 查询工程复盘详情列表
export function listRecoveryDetail(query) {
  return request({
    url: '/project/recoveryDetail/list',
    method: 'get',
    params: query
  })
}

// 查询工程复盘详情详细
export function getRecoveryDetail(recoveryDetailId) {
  return request({
    url: '/project/recoveryDetail/' + recoveryDetailId,
    method: 'get'
  })
}

// 新增工程复盘详情
export function addRecoveryDetail(data) {
  return request({
    url: '/project/recoveryDetail',
    method: 'post',
    data: data
  })
}

// 修改工程复盘详情
export function updateRecoveryDetail(data) {
  return request({
    url: '/project/recoveryDetail',
    method: 'put',
    data: data
  })
}

// 删除工程复盘详情
export function delRecoveryDetail(recoveryDetailId) {
  return request({
    url: '/project/recoveryDetail/' + recoveryDetailId,
    method: 'delete'
  })
}
